<?php

class EventsDataRetriever extends URLDataRetriever {

    protected function init($args) {
        parent::init($args);
        switch ($args['PARSER_CLASS']) {
            case 'JSONDataParser':
                $format = 'json';
                break;
            case 'XMLDataParser':
                $format = 'xml';
                break;
            case 'CSVDataParser':
                $format = 'csv';
                break;
        }
        $this->addFilter('$format', $format);
    }
}

